package com.znzz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.znzz.domain.User;

import java.util.List;

/**
 * 业务层
 */
public interface UserService {
    boolean save(User user);

    boolean update(User user);

    boolean delete(String id);

    User getById(String id);

    List<User> getAll();

    /**
     * 分页查询
     *
     * @param currentPage
     * @param pageSize
     * @return
     */
    IPage<User> getByPage(int currentPage, int pageSize);
}
